//
//  UrlRequestManager.h
//  LO_MUSIC
//
//  Created by lanou3g on 16/2/29.
//  Copyright © 2016年 杨少锋. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "singleton.h"
typedef NS_ENUM(NSInteger,requestUrlType) {
    GET,
    POST,
};
typedef void (^successBlock)(id item);
typedef void (^faileBlock)(NSError *err);
@interface UrlRequestManager : NSObject

single_interface(UrlRequestManager)


+ (void)requestWith:(requestUrlType)Type URL:(NSString *)URL condition:(NSDictionary *)condition SuccessBlock:(successBlock)successBlock FaileBlock:(faileBlock)faileBlock;


//+(void)requestWith:(requestUrlType)Type URL:(NSString *)URL condition:(NSDictionary *)condition success:(void(^)(id item))success faile:(void(^)(NSError *err))faile;

@end
